import { reactive, ref } from "vue";

export default function InitHook() {
  const searchForm = reactive<OutBoundAgent.SearchForm>({
    name: "",
    beforePageNum: 0,
    status: undefined,
    pageNum: 1,
    pageSize: 100,
    total: 0
  });
  const tableData = ref<OutBoundAgent.ListRows[]>([]);
  const drawerOpts = reactive<Base.DrawerOpts>({
    title: "",
    width: "",
    visible: false,
    component: "",
    type: 1
  });
  return {
    searchForm,
    tableData,
    drawerOpts
  };
}
